﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="System.Web.Mvc.ViewPage<JLL.China.Web.Areas.Listings.Models.CountryModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <!--  start page-heading -->
    <div id="page-heading">
        <h1>
            <a class="icons icon-circle-arrow-right"></a><span class="show-listing">Manage Country
            </span>
        </h1>
    </div>
    <div class="menu-nav">
        <%Html.RenderPartial("CountryTopMenu");%>
    </div>
    <!-- end page-heading -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowleft.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowright.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner ...................................................................... START -->
                <div id="content-table-inner">
                    <% Html.RenderPartial("Measage");%>
                    <div id="table-content-left">
                        <div id="pending-post-property-request">
                            <form id="mainform" class="list_item_form" method="GET">
                            <div style="padding-bottom: 35px;display: inline;max-width: 500px">
                                <label>
                                    Quick Search:
                                </label>
                                <input id="txtSearch" type="text" value="<%=ViewData["search"]??""%>" name="searchText" class="inp-form" />
                                   <input type="submit" value="search" class="buttons"  style="float: none;display: inline"/></div>
                                 <br/><br/>
                             </form>
                            <% Html.RenderPartial("GridView", Model.Countries); %>
                            
                            
                        </div>
                        <!-- end pending-post-property-request -->
                    </div>
                </div>
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <!--  end table-content  -->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CSS" runat="server">
    <link href="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%=Url.Content("~/Content/css/mod-listing.css") %>" rel="stylesheet" type="text/css" />
 
        
    <style type="text/css">
        #product-table tr td
        {
            padding: 8px;
        }
        #display-per-page {
            margin-left: 0 !important;
        }
    </style>
    <link href="<%=Url.Content("~/Scripts/chosen/chosen.css")%>" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JS" runat="server">

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.mapping.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.core.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.widget.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/ui.checkbox.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.bind.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.pngFix.pack.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5_style_2.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/chosen/chosen.jquery.min.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/Run.js")%>" type="text/javascript"></script>

    <script>
        function checkForm() {
            $(document).ready(function() {
                if ($('#country_cn').val().length > 3) {
                    $('#country_cn_validate').val('ok');
                }
                else {
                    $('#country_cn_validate').val('');
                }

                if ($('#country_en').val().length > 3) {
                    $('#country_en_validate').val('ok');
                }
                else {
                    $('#country_en_validate').val('');
                }
            });

        }

        $(document).ready(function() {
            $(".openwin").fancybox({
                maxWidth: 800,
                maxHeight: 600,
                fitToView: false,
                width: '70%',
                height: '70%',
                autoSize: false,
                closeClick: false,
                openEffect: 'none',
                closeEffect: 'none'
            });
             $(".czselect").chosen({ disable_search_threshold: 8, allow_single_deselect: true });
            
            
            $("#txtSearch").change(function() {
                $("#mainform").submit();

            });
            
           
        });
    </script>

</asp:Content>
